package com.hxl.tech.gateway.auth.model;

import com.hxl.tech.gateway.common.constant.AppConstant;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户 Model 
 * @author soliddq
 * @date 2023-10-10
 */
@Entity
@Data
public class User implements Serializable {

    @Id
    private String userId;

    private String userName;

    private String realName;

    private String roleName;

    private String phone;

    private String password;

    @Enumerated(EnumType.STRING)
    private AppConstant.StateEnum state;

    private String createBy;

    private LocalDateTime createTime;

    private String updateBy;

    private LocalDateTime updateTime;

}
